package core.helpers;

import core.Pilot;

/**
 * Class provides functions for values testing
 */
public class WriterHelper
{
	protected static Pilot pilot;

	/**
	 * Initializes WriterHelper
	 * @param p_pilot
	 *            PilotManager instance
	 */
	public WriterHelper(Pilot p_pilot)
	{
		pilot = p_pilot;
	}

	/**
	 * Writes data to file .csv
	 * @param p_pathToFile
	 * @param p_data
	 */
	public void writeToCsv(String p_pathToFile, String... p_data)
	{
		pilot.csv().write(p_pathToFile, p_data);
	}

	/**
	 * Writes data ro file .txt
	 * @param p_pathToFile
	 * @param p_text
	 */
	public void writeToTxt(String p_pathToFile, String p_text)
	{
		pilot.file().write(p_pathToFile, p_text);
	}
}
